package com.tianyu.inspection.entity;

import com.alibaba.fastjson2.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**********************************
 * @Author YSW
 * @Description 通用设施
 * @Date 2021/1/5 - 11:34
 **********************************/

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class GeneralFacilities implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String number;
    private Double lng;
    private Double lat;
    private String lngLats;
    private String address;
    private String sceneImage;
    private String description;
    private String dutyPerson;
    private String dutyMobile;
    private Date createTime;
    private Date modifyTime;
    /**
     * 管道名称[非数据库字段]
     */
    @TableField(exist = false)
    private JSONArray lngLatList;

    /**
     * 桩牌类型
     */
    private Integer generalFacilitiesTypeId;

    /**
     * 管道ID
     */
    private Integer pipelineId;

    /**
     * 项目ID
     */
    private Integer projectId;

    @JsonIgnore
    private Integer state;

    /**
     * 设施类型名称
     */
    @TableField(exist = false)
    private String generalFacilitiesTypeName;

    /**
     * 设施类型图标
     */
    @TableField(exist = false)
    private String generalFacilitiesTypeIcon;

    /**
     * 管道名称
     */
    @TableField(exist = false)
    private String pipelineName;
}
